Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions for Getting and Playing Movies / Saving Movies


HasMovieChanged

The HasMovieChanged function allows your application to determine whether a movie has changed and needs to be saved.

pascal Boolean HasMovieChanged (Movie theMovie);
theMovie
Specifies the movie for this operation. Your application obtains this movie identifier from such functions as NewMovie, NewMovieFromFile, and NewMovieFromHandle (described on page 2-80, page 2-76, and page 2-78, respectively).
DESCRIPTION
The HasMovieChanged function returns a Boolean value that reflects the contents of the movie changed flag. The function sets the returned value to true if the movie has been changed in such a way that it should be saved. Otherwise, the returned value is set to false.

Your application can clear the movie changed flag, indicating that the movie has not changed, by calling the ClearMovieChanged function, which is described in the next section.

ERROR CODES
invalidMovie-2010This movie is corrupted or invalid
SEE ALSO
Both the AddMovieResource function (described on page 2-90) and the UpdateMovieResource function (described on page 2-91) update the movie file and clear the movie changed flag, indicating that the movie has not been changed.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996